﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("ps_p_guid", Name = "idxpguid", IsUnique = true)]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_product_state
{
    [Key]
    public long ps_id { get; set; }

    [StringLength(50)]
    public string ps_guid { get; set; }

    /// <summary>
    /// 类型名称
    /// </summary>
    [StringLength(100)]
    public string ps_p_guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? ps_add_time { get; set; }

    /// <summary>
    /// 客户
    /// </summary>
    [StringLength(50)]
    public string ps_cu_guid { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [StringLength(255)]
    public string ps_remark { get; set; }

    /// <summary>
    /// 1停止，0启动
    /// </summary>
    public int? ps_status { get; set; }
}
